#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
public slots:
    //void on_lineEdit_returnPressed();

    //void on_lineEdit_2_returnPressed();

    void resultButton();



    void resultlineEdit();

signals:


private slots:
    void on_lineEdit_cursorPositionChanged(int arg1, int arg2);

    void on_lineEdit_2_cursorPositionChanged(int arg1, int arg2);

private:
    Ui::MainWindow *ui;
    double first;
    double second;
    double result;
    int judge;
    bool result_exist;
};

#endif // MAINWINDOW_H
